package com.yogee.topseller.activity.login.model.impl;


import com.yogee.topseller.activity.login.model.ILoginModel;
import com.yogee.topseller.http.HttpManager;

import rx.Observable;

/**
 * 登陆 model
 *
 * @author BiHaidong
 * @date 2017-4-25
 */
public class LoginModel implements ILoginModel {

    @Override
    public Observable login(String phone, String password, String type, String cid,String code,String code_type) {

        return HttpManager.getInstance().userLogin(phone, password, type, cid,code,code_type);
    }

    @Override
    public Observable otherLogin(String openid, String name, String img, String cid) {

        return HttpManager.getInstance().otherLogin(openid, name, img, cid);
    }
}
